package com.woniu.payback_font.mapper;


import com.woniu.payback_font.entity.Repayment;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface RepaymentMapper {
    int deleteByPrimaryKey(Integer rId);

    int insert(Repayment record);

    Repayment selectByPrimaryKey(Integer rId);

    List<Repayment> selectAll();

    int updateByPrimaryKey(Repayment record);

    BigDecimal selectInstestAll(String lReceiptNo);

    /**
     * 查看分期详情代码
     * @param lReceiptNo
     * @return
     */
    List<Repayment> findLoadList(String lReceiptNo);

    /**
     * 查看所有
     * @return
     */
    List<Repayment> findAll();

    /**
     * 查看单人的
     * @param aUid
     * @return
     */
    List<Repayment> findOne(String aUid);
}